package com.woniuxy.joylifecenter.service;

import com.woniuxy.common.entity.CenterUser;

import java.util.*;

public interface UserManageService {
    /**
     * @return java.util.Map<java.lang.String, java.lang.Object>
     * @Author ArmWatt
     * @Date 2020/5/13
     * @Param []
     * @Description 查询所有待审批的用户认证
     **/
    List<Map<String, Object>> queryAllUserApply();

    /**
     * @return int
     * @Author ArmWatt
     * @Date 2020/5/13
     * @Param [id]
     * @Description 通过用户认证
     **/
    int passUserApply(String id);

    /**
     * @return int
     * @Author ArmWatt
     * @Date 2020/5/13
     * @Param [id]
     * @Description 用户认证拒绝
     **/
    int rejectUserApply(String id);


    /**
     * @return java.util.List<com.woniuxy.common.entity.CenterUser>
     * @Author ArmWatt
     * @Date 2020/5/16
     * @Param [centerUser]
     * @Description 多条件模糊查询用户
     **/
    List<CenterUser> selectUserByCondition(CenterUser centerUser);

    /**
     * @return int
     * @Author ArmWatt
     * @Date 2020/5/16
     * @Param [id]
     * @Description 封号
     **/
    int suspendAccount(String id);

    /**
     * @return int
     * @Author ArmWatt
     * @Date 2020/5/16
     * @Param [id]
     * @Description 账号解封
     **/
    int unsuspendAccount(String id);

    /**
     * @return int
     * @Author ArmWatt
     * @Date 2020/5/16
     * @Param [id]
     * @Description 重置密码
     **/
    int resetPassWord(String id);
}
